package com.czwj.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.czwj.dao.WarningValueMapper;
import com.czwj.entities.WarningValue;
import com.czwj.service.WarningValueService;
@Service
public class WarningValueServiceImpl implements WarningValueService {
	@Resource
	WarningValueMapper mapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return this.mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insertSelective(WarningValue record) {
		// TODO Auto-generated method stub
		return this.mapper.insertSelective(record);
	}

	@Override
	public WarningValue selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return this.mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(WarningValue record) {
		// TODO Auto-generated method stub
		return this.mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<WarningValue> search(Map<String,Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.search(map);
	}

	/** 
	* 
	* @param amap
	* @return
	* @see com.czwj.service.WarningValueService#selectWarning(java.util.Map)
	*/
	@Override
	public WarningValue selectWarning(Map<String,Object> amap){
		// TODO Auto-generated method stub
		return this.mapper.selectWarning(amap);
	}

}
